package com.cspg.ssss.repository;

import com.cspg.ssss.domain.DwdggbmjdDataEntity;
import com.cspg.ssss.domain.GsdgdwjdDataEntity;
import com.cspg.ssss.domain.GsdgdwjdTemporaryEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface GsdgdwjdDataMapper {
    int insert(GsdgdwjdTemporaryEntity record);

    List<GsdgdwjdDataEntity> selectDataById(String id);//根据id单条查询

    List<GsdgdwjdDataEntity> selectAll(String id);//查询全部数据

    int batchInsert(@Param("list")List<GsdgdwjdDataEntity> list);//批量插入

    int updateData(GsdgdwjdDataEntity record);//更新

    int deleteData(@Param("id")String  id);//删除

    GsdgdwjdDataEntity selectDataId(String id);

    int insertSelective(GsdgdwjdDataEntity record);
    GsdgdwjdDataEntity seclectdis(@Param("departmentName") String departmentName, @Param("dwmc")String dwmc, @Param("wtms")String wtms, @Param("wtfxfs")String wtfxfs, @Param("wtfxsj")String wtfxsj);
    int selectDataCount();
}